from flask import Blueprint, render_template, request,redirect
from setting import USER_INFO

s4ua = Blueprint("s4ua",__name__)

@s4ua.route("/add_user",methods=["GET","PoSt"])
def add_user():
	if request.method == "GET":
		return render_template("add_user.html")
	else:
		# name = request.form.get("name")
		USER_INFO.append(request.form.to_dict())
		return redirect("/user_list")

